import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

// 定义路由配置
let routes = []
const concat = (router) => {
  routes = routes.concat(router)
}

// 导入路由规则
import homeRouter from '@/module/home/router'
// import CmsRouter from '@/module/cms/router'

// 合并路由规则
concat(homeRouter)// 加入home模块的路由
// concat(CmsRouter)// 加入cms模块的路由

export default routes
